package org.zfes.snowier.cloud.zbss.pmp.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class PmpProjectGroup extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public PmpProjectGroup() {}
	public PmpProjectGroup(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	public PmpProjectGroup(Long projectId, Long userId, String userName, Byte userType) {
		super();
		this.projectId = projectId;
		this.userId = userId;
		this.userName = userName;
		this.userType = userType;
	}
 

	@javax.validation.constraints.NotNull(message="所属项目不能为空")
	  private java.lang.Long projectId;
	



	@javax.validation.constraints.NotNull(message="项目成员不能为空")
	  private java.lang.Long userId;
	@javax.validation.constraints.NotBlank(message="项目成员不能为空")
	@javax.validation.constraints.NotNull(message="项目成员不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=50,message="项目成员长度不能大于50")
	  private java.lang.String userName;
	@javax.validation.constraints.NotNull(message="成员类型不能为空")
	  private java.lang.Byte userType;
	  private java.util.Date updatetime;
	  private java.util.Date createtime;
	@javax.validation.constraints.NotNull(message="状态不能为空")
	  private java.lang.Byte status;
 
	
	//<-------------------------------------------->
	public PmpProjectGroup setProjectId(java.lang.Long projectId){
	 this.projectId=projectId;
	 return this;
	}
	public java.lang.Long getProjectId(){
		return this.projectId;
	}
	public PmpProjectGroup setUserId(java.lang.Long userId){
	 this.userId=userId;
	 return this;
	}
	public java.lang.Long getUserId(){
		return this.userId;
	}
	public PmpProjectGroup setUserName(java.lang.String userName){
		this.userName=userName==null?null:userName.trim();
	 return this;
	}
	public java.lang.String getUserName(){
		return this.userName;
	}
	public PmpProjectGroup setUserType(java.lang.Byte userType){
	 this.userType=userType;
	 return this;
	}
	public java.lang.Byte getUserType(){
		return this.userType;
	}
	public PmpProjectGroup setUpdatetime(java.util.Date updatetime){
	 this.updatetime=updatetime;
	 return this;
	}
	public java.util.Date getUpdatetime(){
		return this.updatetime;
	}
	public PmpProjectGroup setCreatetime(java.util.Date createtime){
	 this.createtime=createtime;
	 return this;
	}
	public java.util.Date getCreatetime(){
		return this.createtime;
	}
	public PmpProjectGroup setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}

	
}
